import type { ButtonProps } from "element-plus";
import { defineComponent } from "vue";

export interface ButtonParams extends Partial<ButtonProps> {
  onClick?: ((evt: MouseEvent) => any) | undefined;
}

export default defineComponent<ButtonParams>({
  name: "Button",
  setup(props, { slots }) {
    return () => (
      <ElButton {...props}>{slots}</ElButton>
    );
  },
});
